﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt
{
	// Token: 0x0200007F RID: 127
	public class TAlterRoleStmt : TCustomSqlStatement
	{
		// Token: 0x06000317 RID: 791 RVA: 0x002F9775 File Offset: 0x002F7975
		public TAlterRoleStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstAlterRole;
		}

		// Token: 0x06000318 RID: 792 RVA: 0x002F9789 File Offset: 0x002F7989
		public TObjectName getRoleName()
		{
			return this.roleName;
		}

		// Token: 0x06000319 RID: 793 RVA: 0x002F9791 File Offset: 0x002F7991
		public TObjectName getNewRoleName()
		{
			return this.newRoleName;
		}

		// Token: 0x0600031A RID: 794 RVA: 0x002F979C File Offset: 0x002F799C
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.roleName = (TObjectName)tdummy.node1;
			this.newRoleName = (TObjectName)tdummy.node2;
			return 0;
		}

		// Token: 0x0600031B RID: 795 RVA: 0x002F97EA File Offset: 0x002F79EA
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0600031C RID: 796 RVA: 0x002F97FA File Offset: 0x002F79FA
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400109A RID: 4250
		private TObjectName roleName;

		// Token: 0x0400109B RID: 4251
		private TObjectName newRoleName;
	}
}
